package com.t235.gc.feign.auth;

import com.t235.gc.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "gc-auth")
public interface MenuRemoteClient {
    @RequestMapping("/sysMenu/roleMenus")
    AjaxResult roleMenus(@RequestParam("roleNames") String roleNames, @RequestHeader("Authorization")String token);

    @RequestMapping("/sysMenu/userMenus")
    AjaxResult userMenus(@RequestParam("username") String username);
}
